package com.javatest.springbootactuator;

import de.codecentric.boot.admin.server.config.EnableAdminServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 编写自定义健康指示器
 * 1.编写一个指示器，实现HealthIndicator接口
 * 2.指示器的名字必须是xxxHealthIndicator
 * 3.加入容器中
 */
@EnableAdminServer
@SpringBootApplication
public class SpringbootActuatorApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootActuatorApplication.class, args);
    }

}
